package com.mqy.ssm.mapper;

import com.mqy.ssm.pojo.Book;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 13159 //作者
 * @version V1.0 //版本
 * @Project case1
 * @Package com.mqy.ssm.mapper
 * @Description:
 * @Date 2022/3/10 10:10//日期
 * @Motto:放下杂念,只为迎接明天更好的自己
 */

public interface BookMapper {
    @Select("select * from book where id=#{id}")
    Book findID(Long id);

    @Select("select * from book")
    List<Book> findAll();

    void bookAdd(Book book);

    @Select("delete from book where id=#{id}")
    void boodremove(Long id);

    void bookupdate(Book book);
}
